/**
 * @description: 总路由 - 其他页面的路由汇聚到这里
 * @author: xiaoxujs
 */
import { ItemType } from 'antd/es/menu/interface';

// 计划管理
import {
    enumPlanManagement,
    routerPlanManagement,
} from '../pages/PlanManagement/router';
// 货品维护
import {
    enumProductMaintenance,
    routerProductMaintenance,
} from '../pages/ProductMaintenance/router';
/**
 * 门岗管理
 */
//  进出记录
import {
    enumJinchujilu,
    routerJinchujilu,
} from '../pages/Jinchu/router';
// 物联控制
import {
    enumWulian,
    routerWulian,
} from '../pages/Wulian/router';
// 车道维护
import {
    enumChedaoweihu,
    routerChedaoweihun,
} from "../pages/Chedaoweihu/router";
// 车辆排队
import {
    enumCheliangpaidui,
    routerCheliangpaidui,
} from "../pages/Cheliangpaidui/router";


import {
    enumLoadingReportPage,
    routerLoadingReportPage,
} from '../pages/LoadingReport/router';
import {
    enumSystemSetting,
    routerSystemSetting
} from '../pages/SystemSetting/router';
import {
    enumVehicleFile,
    routerVehicleFile
} from '../pages/VehicleFile/router';
import {
    enumEntrancePage,
    routerEntrancePage
} from '../pages/WeighingRoom/router';

// 提煤单管理
import {
    enumPaichedanManagement ,
    routerPaichedanManagement ,
} from '../pages/PaichedanManagement/router';
// 装车报表
import {
    enumZhuangcheFormList,
    routerZhuangcheFormList,
} from '../pages/ZhuangcheForm/router';
// 远程控制
import {
    enumRemoteControl,
    routerRemoteControl,
} from '../pages/RemoteControl/router';
import { enumWorkBenchPages, routerWorkBenchPages } from '../pages/WorkBench/router';

//菜单
let enumData: ItemType[] = [
    ...enumPlanManagement,
    ...enumProductMaintenance,
    ...enumJinchujilu,
    ...enumWulian,
    ...enumChedaoweihu,
    ...enumCheliangpaidui,
    ...enumLoadingReportPage,
    ...enumSystemSetting,
    ...enumVehicleFile,
    ...enumEntrancePage,
    ...enumPaichedanManagement,
    ...enumZhuangcheFormList,
    ...enumRemoteControl,
    ...enumWorkBenchPages
];

//路由
let routerData: {
    path: string;
    title: string;
    component: JSX.Element;
}[] = [
        ...routerPlanManagement,
        ...routerProductMaintenance,
        ...routerJinchujilu,
        ...routerWulian,
        ...routerChedaoweihun,
        ...routerCheliangpaidui,
        ...routerLoadingReportPage,
        ...routerSystemSetting,
        ...routerVehicleFile,
        ...routerEntrancePage,
        ...routerPaichedanManagement,
        ...routerZhuangcheFormList,
        ...routerRemoteControl,
        ...routerWorkBenchPages
    ];

export { routerData, enumData };
